package com.huffman.smart_picture.mapper;

import com.huffman.smart_picture.domain.entity.SequenceVip;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
* @author yrforest
* @description 针对表【sequence_vip】的数据库操作Mapper
* @createDate 2025-06-10 21:22:44
* @Entity com.huffman.smart_picture.domain.entity.SequenceVip
*/
@Mapper
public interface SequenceVipMapper extends BaseMapper<SequenceVip> {
    // MyBatis Mapper 接口
    @Update("REPLACE INTO sequence_vip (stub) VALUES ('a')")
    void replaceSequence();

    @Select("SELECT LAST_INSERT_ID()")
    Long getNextVipNumber();
}




